package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdPage;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdPageMapper {
    int deleteByPrimaryKey(Integer pageId);

    int insert(AdPage record);

    int insertSelective(AdPage record);

    AdPage selectByPrimaryKey(Integer pageId);

    int updateByPrimaryKeySelective(AdPage record);

    int updateByPrimaryKeyWithBLOBs(AdPage record);

    int updateByPrimaryKey(AdPage record);


    List<AdPage> selectAdPages();

    List<AdPage> selectAdPagesSearched(@Param("criteria")String criteria);
}